FROM openjdk:8-alpine3.9
# 作者信息
MAINTAINER jinshanzhang Docker springboot "jinshanzhang@lagou.com"
# 修改源生成测试镜像
RUN echo -e "https://mirrors.aliyun.com/alpine/v3.9/main/" > /etc/apk/repositories && \
    echo -e "http://mirrors.aliyun.com/alpine/v3.9/community/" >> /etc/apk/repositories
# 安装需要的软件，解决时区问题
RUN apk --update add curl bash tzdata && rm -rf /var/cache/apk/*
#修改镜像为东八区时间
ENV TZ Asia/Shanghai
ARG JAR_FILE
COPY ${JAR_FILE} app.jar
EXPOSE 8082
ENTRYPOINT ["java","-jar","/app.jar"]